# -*- mode: snippet -*-
# name: ggplot geom_boxplot
# key: geom_boxplot@ggplot2
# contributor: Shuguang Sun
# --
geom_boxplot(
# notch: Useful to compare groups:
# if no overlap between 2 groups, medians are significantly different.
# notch = TRUE,
position = ${1:$$(yas-choose-value '("\\\"dodge2\\\"" "\\\"identity\\\"" "position_dodge(1)" "\\\"stack\\\"" "position_stack(1)"))},
# outlier.shape = NA, # hide outlier
# Change outlier, color, shape and size
outlier.colour = "red",
outlier.shape = 8,
outlier.size = 4
)